.wrapper {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;

  font-family: var(--main-font);
  /* NOTE: workaround for that drawer with modal={false} does not work */
  /* ref: https://github.com/emilkowalski/vaul/issues/492 */
  pointer-events: all;
}

.mainWrapper {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  width: 100%;
  height: 100%;
}

.main {
  position: relative;
  width: 100%;
  height: 100%;
}

.triggerWrapper {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
}

.toolbarWrapper {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  justify-content: center;
  margin: 0 auto;
  /* NOTE: Disable pointer events to allow interaction with Reactflow underneath the toolbar */
  pointer-events: none;
}

/* NOTE: Make the toolbar itself clickable */
.toolbarWrapper > * {
  pointer-events: auto;
}

@media screen and (max-width: 768px) {
  .main {
    overflow: hidden;
  }

  .triggerWrapper {
    display: none;
  }
}
